
import requests
import re


page_source= requests.get('https://www.169tp.com/').text
img_hrefs= []
img_hrefs= re.findall(r'<img .*? src="(.*?)"',page_source)
print(1,img_hrefs)
for i in range(len(img_hrefs)):
    print(img_hrefs[i])
    img_content= requests.get(img_hrefs[i]).content
    with open('D:\\test'+str(i)+'.jpeg','wb') as fp:
        fp.write(img_content)